package game;
import java.awt.Graphics;
import java.awt.Image;
import java.util.LinkedList;


public class BackGround {
	
	private int x=800,y;
	
	private boolean active;
	
	Image image;
	
	public BackGround(Image image) {
	
	this.image = image;
	
	}
	
	public void update(){
		
		x -= 5; 
		if (x <= -800)
			active = false;
		
	}

	public void render(Graphics g){
		
		g.drawImage(image, x, y, null);
//		asd.add(g);
//		
//		for(int i = 9; i <0 ; i++){
//			
//		}
				
	}
	
	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	

}
